package com.woohua.demo.command;

/***
 * @title SellOrder
 * @description
 * @author baiji
 * @version 1.0.0
 * @create 2023/6/5 11:23
 **/
public class SellOrder implements Order {

    private Stock abcStock;

    public SellOrder(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.sell();
    }
}
